home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 8 / IOPROG_8.ISO / soft / sdkplnet / mac / plgsk401.sit / PluginSDK 4.01a / Examples / LivePict / Source / LivePict.cp < prev    next >
MacBinary  |  1997-07-09  |  14.3 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert MS-DOS Code Page Info (other/dosCodePage) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Jul 9 11:53:52 1997, modified Wed Jul 9 11:53:52 1997, creator 'CWIE', type ASCII, 13913 bytes "LivePict.cp" , at 0x36d9 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 4c 69 76 65 50 69 | 63 74 2e 63 70 00 00 00 |..LivePi|ct.cp...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 36 59 00 | 00 01 9a af e9 64 90 af |.....6Y.|.....d..|
|00000060| e9 64 90 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.d......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 39 ac 00 00 |........|....9...|
|00000080| 2f 2f 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |//::::::|::::::::|
|00000090| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|000000a0| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|000000b0| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|000000c0| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|000000d0| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 0d 2f 2f 0d |::::::::|::::.//.|
|000000e0| 2f 2f 20 6e 70 73 68 65 | 6c 6c 2e 63 70 70 0d 2f |// npshe|ll.cpp./|
|000000f0| 2f 0d 2f 2f 20 54 68 69 | 73 20 66 69 6c 65 20 64 |/.// Thi|s file d|
|00000100| 65 66 69 6e 65 73 20 61 | 20 22 73 68 65 6c 6c 22 |efines a| "shell"|
|00000110| 20 70 6c 75 67 69 6e 20 | 74 68 61 74 20 70 6c 75 | plugin |that plu|
|00000120| 67 69 6e 20 64 65 76 65 | 6c 6f 70 65 72 73 20 63 |gin deve|lopers c|
|00000130| 61 6e 20 75 73 65 0d 2f | 2f 20 61 73 20 74 68 65 |an use./|/ as the|
|00000140| 20 62 61 73 69 73 20 66 | 6f 72 20 61 20 72 65 61 | basis f|or a rea|
|00000150| 6c 20 70 6c 75 67 69 6e | 2e 20 20 54 68 69 73 20 |l plugin|. This |
|00000160| 73 68 65 6c 6c 20 6a 75 | 73 74 20 70 72 6f 76 69 |shell ju|st provi|
|00000170| 64 65 73 20 65 6d 70 74 | 79 0d 2f 2f 20 69 6d 70 |des empt|y.// imp|
|00000180| 6c 65 6d 65 6e 74 61 74 | 69 6f 6e 73 20 6f 66 20 |lementat|ions of |
|00000190| 61 6c 6c 20 66 75 6e 63 | 74 69 6f 6e 73 20 74 68 |all func|tions th|
|000001a0| 61 74 20 74 68 65 20 70 | 6c 75 67 69 6e 20 63 61 |at the p|lugin ca|
|000001b0| 6e 20 69 6d 70 6c 65 6d | 65 6e 74 0d 2f 2f 20 74 |n implem|ent.// t|
|000001c0| 68 61 74 20 77 69 6c 6c | 20 62 65 20 63 61 6c 6c |hat will| be call|
|000001d0| 65 64 20 62 79 20 4e 65 | 74 73 63 61 70 65 20 28 |ed by Ne|tscape (|
|000001e0| 74 68 65 20 4e 50 50 5f | 78 78 78 20 6d 65 74 68 |the NPP_|xxx meth|
|000001f0| 6f 64 73 20 64 65 66 69 | 6e 65 64 20 69 6e 20 0d |ods defi|ned in .|
|00000200| 2f 2f 20 6e 70 61 70 69 | 2e 68 29 2e 20 0d 2f 2f |// npapi|.h). .//|
|00000210| 0d 2f 2f 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |.//:::::|::::::::|
|00000220| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|00000230| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|00000240| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|00000250| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 3a 3a 3a |::::::::|::::::::|
|00000260| 3a 3a 3a 3a 3a 3a 3a 3a | 3a 3a 3a 3a 3a 0d 0d 23 |::::::::|:::::..#|
|00000270| 69 66 6e 64 65 66 20 5f | 4e 50 41 50 49 5f 48 5f |ifndef _|NPAPI_H_|
|00000280| 0d 23 69 6e 63 6c 75 64 | 65 20 22 6e 70 61 70 69 |.#includ|e "npapi|
|00000290| 2e 68 22 0d 23 65 6e 64 | 69 66 0d 0d 23 64 65 66 |.h".#end|if..#def|
|000002a0| 69 6e 65 20 49 4d 50 4c | 45 4d 45 4e 54 5f 52 65 |ine IMPL|EMENT_Re|
|000002b0| 6c 6f 63 61 74 61 62 6c | 65 50 6c 75 67 69 6e 0d |locatabl|ePlugin.|
|000002c0| 23 69 6e 63 6c 75 64 65 | 20 22 52 65 6c 6f 63 61 |#include| "Reloca|
|000002d0| 74 61 62 6c 65 50 6c 75 | 67 69 6e 2e 68 22 0d 0d |tablePlu|gin.h"..|
|000002e0| 2f 2f 0d 2f 2f 20 49 6e | 73 74 61 6e 63 65 20 73 |//.// In|stance s|
|000002f0| 74 61 74 65 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |tate inf|ormation|
|00000300| 20 61 62 6f 75 74 20 74 | 68 65 20 70 6c 75 67 69 | about t|he plugi|
|00000310| 6e 2e 0d 2f 2f 0d 2f 2f | 20 2a 44 65 76 65 6c 6f |n..//.//| *Develo|
|00000320| 70 65 72 73 2a 3a 20 55 | 73 65 20 74 68 69 73 20 |pers*: U|se this |
|00000330| 73 74 72 75 63 74 20 74 | 6f 20 68 6f 6c 64 20 70 |struct t|o hold p|
|00000340| 65 72 2d 69 6e 73 74 61 | 6e 63 65 0d 2f 2f 09 09 |er-insta|nce.//..|
|00000350| 09 09 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 74 |.. infor|mation t|
|00000360| 68 61 74 20 79 6f 75 d5 | 6c 6c 20 6e 65 65 64 20 |hat you.|ll need |
|00000370| 69 6e 20 74 68 65 0d 2f | 2f 09 09 09 09 20 76 61 |in the./|/.... va|
|00000380| 72 69 6f 75 73 20 66 75 | 6e 63 74 69 6f 6e 73 20 |rious fu|nctions |
|00000390| 69 6e 20 74 68 69 73 20 | 66 69 6c 65 2e 0d 2f 2f |in this |file..//|
|000003a0| 0d 0d 0d 74 79 70 65 64 | 65 66 20 73 74 72 75 63 |...typed|ef struc|
|000003b0| 74 20 5f 50 6c 75 67 69 | 6e 49 6e 73 74 61 6e 63 |t _Plugi|nInstanc|
|000003c0| 65 0d 7b 0d 09 4e 50 57 | 69 6e 64 6f 77 2a 09 09 |e.{..NPW|indow*..|
|000003d0| 66 57 69 6e 64 6f 77 3b | 0d 09 75 69 6e 74 31 36 |fWindow;|..uint16|
|000003e0| 09 09 09 66 4d 6f 64 65 | 3b 0d 0d 09 48 61 6e 64 |...fMode|;...Hand|
|000003f0| 6c 65 09 09 09 66 50 69 | 63 74 3b 09 09 09 09 2f |le...fPi|ct;..../|
|00000400| 2f 20 54 68 65 20 70 69 | 63 74 75 72 65 0d 7d 20 |/ The pi|cture.} |
|00000410| 50 6c 75 67 69 6e 49 6e | 73 74 61 6e 63 65 3b 0d |PluginIn|stance;.|
|00000420| 0d 74 79 70 65 64 65 66 | 20 73 74 72 75 63 74 20 |.typedef| struct |
|00000430| 5f 50 6c 75 67 69 6e 50 | 69 63 74 53 74 72 65 61 |_PluginP|ictStrea|
|00000440| 6d 0d 7b 0d 09 48 61 6e | 64 6c 65 09 09 09 66 49 |m.{..Han|dle...fI|
|00000450| 6e 63 6f 6d 69 6e 67 50 | 69 63 74 3b 0d 09 69 6e |ncomingP|ict;..in|
|00000460| 74 33 32 09 09 09 66 49 | 6e 63 6f 6d 69 6e 67 50 |t32...fI|ncomingP|
|00000470| 69 63 74 4c 65 6e 67 74 | 68 3b 0d 7d 20 50 6c 75 |ictLengt|h;.} Plu|
|00000480| 67 69 6e 50 69 63 74 53 | 74 72 65 61 6d 3b 0d 0d |ginPictS|tream;..|
|00000490| 76 6f 69 64 20 09 41 70 | 70 65 6e 64 44 61 74 61 |void .Ap|pendData|
|000004a0| 28 50 6c 75 67 69 6e 50 | 69 63 74 53 74 72 65 61 |(PluginP|ictStrea|
|000004b0| 6d 2a 20 54 68 69 73 2c | 20 75 6e 73 69 67 6e 65 |m* This,| unsigne|
|000004c0| 64 20 6c 6f 6e 67 20 6c | 65 6e 2c 20 76 6f 69 64 |d long l|en, void|
|000004d0| 2a 20 62 75 66 66 65 72 | 29 3b 0d 42 6f 6f 6c 65 |* buffer|);.Boole|
|000004e0| 61 6e 20 53 74 61 72 74 | 44 72 61 77 28 4e 50 57 |an Start|Draw(NPW|
|000004f0| 69 6e 64 6f 77 2a 20 77 | 69 6e 64 6f 77 29 3b 0d |indow* w|indow);.|
|00000500| 76 6f 69 64 20 09 45 6e | 64 44 72 61 77 28 4e 50 |void .En|dDraw(NP|
|00000510| 57 69 6e 64 6f 77 2a 20 | 77 69 6e 64 6f 77 29 3b |Window* |window);|
|00000520| 0d 76 6f 69 64 20 09 44 | 6f 44 72 61 77 28 50 6c |.void .D|oDraw(Pl|
|00000530| 75 67 69 6e 49 6e 73 74 | 61 6e 63 65 2a 20 54 68 |uginInst|ance* Th|
|00000540| 69 73 29 3b 0d 0d 0d 43 | 47 72 61 66 50 6f 72 74 |is);...C|GrafPort|
|00000550| 20 67 53 61 76 65 50 6f | 72 74 3b 0d 43 47 72 61 | gSavePo|rt;.CGra|
|00000560| 66 50 74 72 20 67 4f 6c | 64 50 6f 72 74 3b 0d 4e |fPtr gOl|dPort;.N|
|00000570| 50 42 6f 6f 6c 20 67 55 | 73 69 6e 67 4a 61 76 61 |PBool gU|singJava|
|00000580| 20 3d 20 66 61 6c 73 65 | 3b 0d 0d 0d 2f 2f 2d 2d | = false|;...//--|
|00000590| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005e0| 2d 2d 0d 2f 2f 20 4e 50 | 50 5f 49 6e 69 74 69 61 |--.// NP|P_Initia|
|000005f0| 6c 69 7a 65 3a 0d 2f 2f | 2d 2d 2d 2d 2d 2d 2d 2d |lize:.//|--------|
|00000600| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000610| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000620| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000630| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000640| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 4e 50 45 |--------|----.NPE|
|00000650| 72 72 6f 72 20 4e 50 50 | 5f 49 6e 69 74 69 61 6c |rror NPP|_Initial|
|00000660| 69 7a 65 28 76 6f 69 64 | 29 0d 7b 0d 09 67 53 61 |ize(void|).{..gSa|
|00000670| 76 65 50 6f 72 74 2e 63 | 6c 69 70 52 67 6e 20 3d |vePort.c|lipRgn =|
|00000680| 20 3a 3a 4e 65 77 52 67 | 6e 28 29 3b 0d 09 72 65 | ::NewRg|n();..re|
|00000690| 74 75 72 6e 20 4e 50 45 | 52 52 5f 4e 4f 5f 45 52 |turn NPE|RR_NO_ER|
|000006a0| 52 4f 52 3b 0d 7d 0d 0d | 0d 2f 2f 2d 2d 2d 2d 2d |ROR;.}..|.//-----|
|000006b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|00000700| 2f 2f 20 4e 50 50 5f 53 | 68 75 74 64 6f 77 6e 3a |// NPP_S|hutdown:|
|00000710| 0d 2f 2f 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.//-----|--------|
|00000720| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000730| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000740| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000750| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000760| 2d 2d 2d 2d 2d 2d 2d 0d | 76 6f 69 64 20 4e 50 50 |-------.|void NPP|
|00000770| 5f 53 68 75 74 64 6f 77 | 6e 28 76 6f 69 64 29 0d |_Shutdow|n(void).|
|00000780| 7b 0d 09 69 66 20 28 67 | 53 61 76 65 50 6f 72 74 |{..if (g|SavePort|
|00000790| 2e 63 6c 69 70 52 67 6e | 29 0d 09 09 3a 3a 44 69 |.clipRgn|)...::Di|
|000007a0| 73 70 6f 73 65 52 67 6e | 28 67 53 61 76 65 50 6f |sposeRgn|(gSavePo|
|000007b0| 72 74 2e 63 6c 69 70 52 | 67 6e 29 3b 0d 09 0d 09 |rt.clipR|gn);....|
|000007c0| 4a 52 49 45 6e 76 2a 20 | 65 6e 76 20 3d 20 4e 50 |JRIEnv* |env = NP|
|000007d0| 4e 5f 47 65 74 4a 61 76 | 61 45 6e 76 28 29 3b 0d |N_GetJav|aEnv();.|
|000007e0| 09 69 66 28 20 65 6e 76 | 20 29 20 7b 0d 09 09 52 |.if( env| ) {...R|
|000007f0| 65 6c 6f 63 61 74 61 62 | 6c 65 50 6c 75 67 69 6e |elocatab|lePlugin|
|00000800| 3a 3a 5f 75 6e 72 65 67 | 69 73 74 65 72 28 20 65 |::_unreg|ister( e|
|00000810| 6e 76 20 29 3b 0d 09 09 | 6e 65 74 73 63 61 70 65 |nv );...|netscape|
|00000820| 5f 70 6c 75 67 69 6e 5f | 50 6c 75 67 69 6e 3a 3a |_plugin_|Plugin::|
|00000830| 5f 75 6e 75 73 65 28 20 | 65 6e 76 20 29 3b 0d 09 |_unuse( |env );..|
|00000840| 7d 0d 7d 0d 0d 0d 2f 2f | 2d 2d 2d 2d 2d 2d 2d 2d |}.}...//|--------|
|00000850| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000860| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000870| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000880| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000890| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 2f 2f 20 |--------|----.// |
|000008a0| 4e 50 50 5f 4e 65 77 3a | 0d 2f 2f 2d 2d 2d 2d 2d |NPP_New:|.//-----|
|000008b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000008c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000008d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000008e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000008f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|00000900| 4e 50 45 72 72 6f 72 20 | 4e 50 50 5f 4e 65 77 28 |NPError |NPP_New(|
|00000910| 4e 50 4d 49 4d 45 54 79 | 70 65 20 70 6c 75 67 69 |NPMIMETy|pe plugi|
|00000920| 6e 54 79 70 65 2c 0d 09 | 09 09 09 4e 50 50 20 69 |nType,..|...NPP i|
|00000930| 6e 73 74 61 6e 63 65 2c | 0d 09 09 09 09 75 69 6e |nstance,|.....uin|
|00000940| 74 31 36 20 6d 6f 64 65 | 2c 0d 09 09 09 09 69 6e |t16 mode|,.....in|
|00000950| 74 31 36 20 61 72 67 63 | 2c 0d 09 09 09 09 63 68 |t16 argc|,.....ch|
|00000960| 61 72 2a 20 61 72 67 6e | 5b 5d 2c 0d 09 09 09 09 |ar* argn|[],.....|
|00000970| 63 68 61 72 2a 20 61 72 | 67 76 5b 5d 2c 0d 09 09 |char* ar|gv[],...|
|00000980| 09 09 4e 50 53 61 76 65 | 64 44 61 74 61 2a 20 73 |..NPSave|dData* s|
|00000990| 61 76 65 64 29 0d 7b 0d | 09 69 66 20 28 69 6e 73 |aved).{.|.if (ins|
|000009a0| 74 61 6e 63 65 20 3d 3d | 20 4e 55 4c 4c 29 0d 09 |tance ==| NULL)..|
|000009b0| 09 72 65 74 75 72 6e 20 | 4e 50 45 52 52 5f 49 4e |.return |NPERR_IN|
|000009c0| 56 41 4c 49 44 5f 49 4e | 53 54 41 4e 43 45 5f 45 |VALID_IN|STANCE_E|
|000009d0| 52 52 4f 52 3b 0d 09 09 | 0d 09 69 6e 73 74 61 6e |RROR;...|..instan|
|000009e0| 63 65 2d 3e 70 64 61 74 | 61 20 3d 20 4e 50 4e 5f |ce->pdat|a = NPN_|
|000009f0| 4d 65 6d 41 6c 6c 6f 63 | 28 73 69 7a 65 6f 66 28 |MemAlloc|(sizeof(|
|00000a00| 50 6c 75 67 69 6e 49 6e | 73 74 61 6e 63 65 29 29 |PluginIn|stance))|
|00000a10| 3b 0d 09 50 6c 75 67 69 | 6e 49 6e 73 74 61 6e 63 |;..Plugi|nInstanc|
|00000a20| 65 2a 20 54 68 69 73 20 | 3d 20 28 50 6c 75 67 69 |e* This |= (Plugi|
|00000a30| 6e 49 6e 73 74 61 6e 63 | 65 2a 29 20 69 6e 73 74 |nInstanc|e*) inst|
|00000a40| 61 6e 63 65 2d 3e 70 64 | 61 74 61 3b 0d 09 0d 09 |ance->pd|ata;....|
|00000a50| 69 66 20 28 54 68 69 73 | 20 21 3d 20 4e 55 4c 4c |if (This| != NULL|
|00000a60| 29 0d 09 7b 0d 09 09 54 | 68 69 73 2d 3e 66 57 69 |)..{...T|his->fWi|
|00000a70| 6e 64 6f 77 20 3d 20 4e | 55 4c 4c 3b 0d 09 09 54 |ndow = N|ULL;...T|
|00000a80| 68 69 73 2d 3e 66 50 69 | 63 74 20 3d 20 4e 55 4c |his->fPi|ct = NUL|
|00000a90| 4c 3b 0d 09 09 54 68 69 | 73 2d 3e 66 4d 6f 64 65 |L;...Thi|s->fMode|
|00000aa0| 20 3d 20 6d 6f 64 65 3b | 0d 09 09 72 65 74 75 72 | = mode;|...retur|
|00000ab0| 6e 20 4e 50 45 52 52 5f | 4e 4f 5f 45 52 52 4f 52 |n NPERR_|NO_ERROR|
|00000ac0| 3b 0d 09 7d 0d 09 65 6c | 73 65 20 7b 0d 09 09 72 |;..}..el|se {...r|
|00000ad0| 65 74 75 72 6e 20 4e 50 | 45 52 52 5f 4f 55 54 5f |eturn NP|ERR_OUT_|
|00000ae0| 4f 46 5f 4d 45 4d 4f 52 | 59 5f 45 52 52 4f 52 3b |OF_MEMOR|Y_ERROR;|
|00000af0| 0d 09 7d 0d 7d 0d 0d 0d | 0d 0d 2f 2f 2d 2d 2d 2d |..}.}...|..//----|
|00000b00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b50| 0d 2f 2f 20 4e 50 50 5f | 44 65 73 74 72 6f 79 3a |.// NPP_|Destroy:|
|00000b60| 0d 2f 2f 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.//-----|--------|
|00000b70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000ba0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000bb0| 2d 2d 2d 2d 2d 2d 2d 0d | 4e 50 45 72 72 6f 72 20 |-------.|NPError |
|00000bc0| 4e 50 50 5f 44 65 73 74 | 72 6f 79 28 4e 50 50 20 |NPP_Dest|roy(NPP |
|00000bd0| 69 6e 73 74 61 6e 63 65 | 2c 20 4e 50 53 61 76 65 |instance|, NPSave|
|00000be0| 64 44 61 74 61 2a 2a 20 | 73 61 76 65 29 0d 7b 0d |dData** |save).{.|
|00000bf0| 09 69 66 20 28 69 6e 73 | 74 61 6e 63 65 20 3d 3d |.if (ins|tance ==|
|00000c00| 20 4e 55 4c 4c 29 0d 09 | 09 72 65 74 75 72 6e 20 | NULL)..|.return |
|00000c10| 4e 50 45 52 52 5f 49 4e | 56 41 4c 49 44 5f 49 4e |NPERR_IN|VALID_IN|
|00000c20| 53 54 41 4e 43 45 5f 45 | 52 52 4f 52 3b 0d 0d 09 |STANCE_E|RROR;...|
|00000c30| 50 6c 75 67 69 6e 49 6e | 73 74 61 6e 63 65 2a 20 |PluginIn|stance* |
|00000c40| 54 68 69 73 20 3d 20 28 | 50 6c 75 67 69 6e 49 6e |This = (|PluginIn|
|00000c50| 73 74 61 6e 63 65 2a 29 | 20 69 6e 73 74 61 6e 63 |stance*)| instanc|
|00000c60| 65 2d 3e 70 64 61 74 61 | 3b 0d 0d 09 69 66 20 28 |e->pdata|;...if (|
|00000c70| 54 68 69 73 20 21 3d 20 | 4e 55 4c 4c 29 0d 09 7b |This != |NULL)..{|
|00000c80| 0d 09 09 69 66 20 28 54 | 68 69 73 2d 3e 66 50 69 |...if (T|his->fPi|
|00000c90| 63 74 29 20 7b 0d 09 09 | 09 3a 3a 44 69 73 70 6f |ct) {...|.::Dispo|
|00000ca0| 73 65 48 61 6e 64 6c 65 | 28 54 68 69 73 2d 3e 66 |seHandle|(This->f|
|00000cb0| 50 69 63 74 29 3b 0d 09 | 09 7d 0d 09 09 4e 50 4e |Pict);..|.}...NPN|
|00000cc0| 5f 4d 65 6d 46 72 65 65 | 28 69 6e 73 74 61 6e 63 |_MemFree|(instanc|
|00000cd0| 65 2d 3e 70 64 61 74 61 | 29 3b 0d 09 09 69 6e 73 |e->pdata|);...ins|
|00000ce0| 74 61 6e 63 65 2d 3e 70 | 64 61 74 61 20 3d 20 4e |tance->p|data = N|
|00000cf0| 55 4c 4c 3b 0d 09 7d 0d | 0d 09 72 65 74 75 72 6e |ULL;..}.|..return|
|00000d00| 20 4e 50 45 52 52 5f 4e | 4f 5f 45 52 52 4f 52 3b | NPERR_N|O_ERROR;|
|00000d10| 0d 7d 0d 0d 0d 0d 0d 2f | 2f 2d 2d 2d 2d 2d 2d 2d |.}...../|/-------|
|00000d20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000d30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000d40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000d50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000d60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0d 2f 2f |--------|-----.//|
|00000d70| 20 4e 50 50 5f 53 65 74 | 57 69 6e 64 6f 77 3a 0d | NPP_Set|Window:.|
|00000d80| 2f 2f 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |//------|--------|
|00000d90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000da0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000db0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000dc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000dd0| 2d 2d 2d 2d 2d 2d 0d 4e | 50 45 72 72 6f 72 20 4e |------.N|PError N|
|00000de0| 50 50 5f 53 65 74 57 69 | 6e 64 6f 77 28 4e 50 50 |PP_SetWi|ndow(NPP|
|00000df0| 20 69 6e 73 74 61 6e 63 | 65 2c 20 4e 50 57 69 6e | instanc|e, NPWin|
|00000e00| 64 6f 77 2a 20 77 69 6e | 64 6f 77 29 0d 7b 0d 09 |dow* win|dow).{..|
|00000e10| 69 66 20 28 69 6e 73 74 | 61 6e 63 65 20 3d 3d 20 |if (inst|ance == |
|00000e20| 4e 55 4c 4c 29 0d 09 09 | 72 65 74 75 72 6e 20 4e |NULL)...|return N|
|00000e30| 50 45 52 52 5f 49 4e 56 | 41 4c 49 44 5f 49 4e 53 |PERR_INV|ALID_INS|
|00000e40| 54 41 4e 43 45 5f 45 52 | 52 4f 52 3b 0d 0d 09 50 |TANCE_ER|ROR;...P|
|00000e50| 6c 75 67 69 6e 49 6e 73 | 74 61 6e 63 65 2a 20 54 |luginIns|tance* T|
|00000e60| 68 69 73 20 3d 20 28 50 | 6c 75 67 69 6e 49 6e 73 |his = (P|luginIns|
|00000e70| 74 61 6e 63 65 2a 29 20 | 69 6e 73 74 61 6e 63 65 |tance*) |instance|
|00000e80| 2d 3e 70 64 61 74 61 3b | 0d 0d 09 2f 2f 0d 09 2f |->pdata;|...//../|
|00000e90| 2f 20 2a 44 65 76 65 6c | 6f 70 65 72 73 2a 3a 20 |/ *Devel|opers*: |
|00000ea0| 42 65 66 6f 72 65 20 73 | 65 74 74 69 6e 67 20 66 |Before s|etting f|
|00000eb0| 57 69 6e 64 6f 77 20 74 | 6f 20 70 6f 69 6e 74 20 |Window t|o point |
|00000ec0| 74 6f 20 74 68 65 0d 09 | 2f 2f 20 6e 65 77 20 77 |to the..|// new w|
|00000ed0| 69 6e 64 6f 77 2c 20 79 | 6f 75 20 6d 61 79 20 77 |indow, y|ou may w|
|00000ee0| 69 73 68 20 74 6f 20 63 | 6f 6d 70 61 72 65 20 74 |ish to c|ompare t|
|00000ef0| 68 65 20 6e 65 77 20 77 | 69 6e 64 6f 77 0d 09 2f |he new w|indow../|
|00000f00| 2f 20 69 6e 66 6f 20 74 | 6f 20 74 68 65 20 70 72 |/ info t|o the pr|
|00000f10| 65 76 69 6f 75 73 20 77 | 69 6e 64 6f 77 20 28 69 |evious w|indow (i|
|00000f20| 66 20 61 6e 79 29 20 74 | 6f 20 6e 6f 74 65 20 77 |f any) t|o note w|
|00000f30| 69 6e 64 6f 77 0d 09 2f | 2f 20 73 69 7a 65 20 63 |indow../|/ size c|
|00000f40| 68 61 6e 67 65 73 2c 20 | 65 74 63 2e 0d 09 2f 2f |hanges, |etc...//|
|00000f50| 0d 09 0d 09 54 68 69 73 | 2d 3e 66 57 69 6e 64 6f |....This|->fWindo|
|00000f60| 77 20 3d 20 77 69 6e 64 | 6f 77 3b 0d 0d 09 72 65 |w = wind|ow;...re|
|00000f70| 74 75 72 6e 20 4e 50 45 | 52 52 5f 4e 4f 5f 45 52 |turn NPE|RR_NO_ER|
|00000f80| 52 4f 52 3b 0d 7d 0d 0d | 0d 0d 2f 2f 2d 2d 2d 2d |ROR;.}..|..//----|
|00000f90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000fa0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000fb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000fc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000fd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000fe0| 0d 2f 2f 20 4e 50 50 5f | 4e 65 77 53 74 72 65 61 |.// NPP_|NewStrea|
|00000ff0| 6d 3a 0d 2f 2f 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |m:.//---|--------|
|00001000| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001010| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001020| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001030| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001040| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0d 4e 50 45 72 72 6f |--------|-.NPErro|
|00001050| 72 20 4e 50 50 5f 4e 65 | 77 53 74 72 65 61 6d 28 |r NPP_Ne|wStream(|
|00001060| 4e 50 50 20 69 6e 73 74 | 61 6e 63 65 2c 0d 09 09 |NPP inst|ance,...|
|00001070| 09 09 09 09 09 4e 50 4d | 49 4d 45 54 79 70 65 20 |.....NPM|IMEType |
|00001080| 74 79 70 65 2c 0d 09 09 | 09 09 09 09 09 4e 50 53 |type,...|.....NPS|
|00001090| 74 72 65 61 6d 20 2a 73 | 74 72 65 61 6d 2c 20 0d |tream *s|tream, .|
|000010a0| 09 09 09 09 09 09 09 4e | 50 42 6f 6f 6c 20 73 65 |.......N|PBool se|
|000010b0| 65 6b 61 62 6c 65 2c 0d | 09 09 09 09 09 09 09 75 |ekable,.|.......u|
|000010c0| 69 6e 74 31 36 20 2a 73 | 74 79 70 65 29 0d 7b 0d |int16 *s|type).{.|
|000010d0| 09 69 66 20 28 69 6e 73 | 74 61 6e 63 65 20 3d 3d |.if (ins|tance ==|
|000010e0| 20 4e 55 4c 4c 29 0d 09 | 09 72 65 74 75 72 6e 20 | NULL)..|.return |
|000010f0| 4e 50 45 52 52 5f 49 4e | 56 41 4c 49 44 5f 49 4e |NPERR_IN|VALID_IN|
|00001100| 53 54 41 4e 43 45 5f 45 | 52 52 4f 52 3b 0d 09 50 |STANCE_E|RROR;..P|
|00001110| 6c 75 67 69 6e 49 6e 73 | 74 61 6e 63 65 2a 20 54 |luginIns|tance* T|
|00001120| 68 69 73 20 3d 20 28 50 | 6c 75 67 69 6e 49 6e 73 |his = (P|luginIns|
|00001130| 74 61 6e 63 65 2a 29 20 | 69 6e 73 74 61 6e 63 65 |tance*) |instance|
|00001140| 2d 3e 70 64 61 74 61 3b | 0d 0d 09 50 6c 75 67 69 |->pdata;|...Plugi|
|00001150| 6e 50 69 63 74 53 74 72 | 65 61 6d 2a 20 6e 65 77 |nPictStr|eam* new|
|00001160| 53 74 72 65 61 6d 20 3d | 20 28 50 6c 75 67 69 6e |Stream =| (Plugin|
|00001170| 50 69 63 74 53 74 72 65 | 61 6d 2a 29 20 4e 50 4e |PictStre|am*) NPN|
|00001180| 5f 4d 65 6d 41 6c 6c 6f | 63 28 73 69 7a 65 6f 66 |_MemAllo|c(sizeof|
|00001190| 28 50 6c 75 67 69 6e 50 | 69 63 74 53 74 72 65 61 |(PluginP|ictStrea|
|000011a0| 6d 29 29 3b 0d 0d 09 69 | 66 28 20 6e 65 77 53 74 |m));...i|f( newSt|
|000011b0| 72 65 61 6d 20 21 3d 20 | 4e 55 4c 4c 20 29 20 7b |ream != |NULL ) {|
|000011c0| 0d 09 09 6e 65 77 53 74 | 72 65 61 6d 2d 3e 66 49 |...newSt|ream->fI|
|000011d0| 6e 63 6f 6d 69 6e 67 50 | 69 63 74 20 3d 20 4e 55 |ncomingP|ict = NU|
|000011e0| 4c 4c 3b 0d 09 09 6e 65 | 77 53 74 72 65 61 6d 2d |LL;...ne|wStream-|
|000011f0| 3e 66 49 6e 63 6f 6d 69 | 6e 67 50 69 63 74 4c 65 |>fIncomi|ngPictLe|
|00001200| 6e 67 74 68 20 3d 20 30 | 3b 0d 09 09 73 74 72 65 |ngth = 0|;...stre|
|00001210| 61 6d 2d 3e 70 64 61 74 | 61 20 3d 20 6e 65 77 53 |am->pdat|a = newS|
|00001220| 74 72 65 61 6d 3b 0d 09 | 7d 0d 09 65 6c 73 65 20 |tream;..|}..else |
|00001230| 7b 0d 09 09 72 65 74 75 | 72 6e 20 4e 50 45 52 52 |{...retu|rn NPERR|
|00001240| 5f 4f 55 54 5f 4f 46 5f | 4d 45 4d 4f 52 59 5f 45 |_OUT_OF_|MEMORY_E|
|00001250| 52 52 4f 52 3b 0d 09 7d | 0d 09 0d 09 72 65 74 75 |RROR;..}|....retu|
|00001260| 72 6e 20 4e 50 45 52 52 | 5f 4e 4f 5f 45 52 52 4f |rn NPERR|_NO_ERRO|
|00001270| 52 3b 0d 7d 0d 0d 0d 0d | 0d 2f 2f 0d 2f 2f 20 2a |R;.}....|.//.// *|
|00001280| 44 65 76 65 6c 6f 70 65 | 72 73 2a 3a 20 0d 2f 2f |Develope|rs*: .//|
|00001290| 20 54 68 65 73 65 20 6e | 65 78 74 20 32 20 66 75 | These n|ext 2 fu|
|000012a0| 6e 63 74 69 6f 6e 73 20 | 61 72 65 20 64 69 72 65 |nctions |are dire|
|000012b0| 63 74 6c 79 20 72 65 6c | 65 76 61 6e 74 20 69 6e |ctly rel|evant in|
|000012c0| 20 61 20 70 6c 75 67 2d | 69 6e 20 77 68 69 63 68 | a plug-|in which|
|000012d0| 20 68 61 6e 64 6c 65 73 | 20 74 68 65 0d 2f 2f 20 | handles| the.// |
|000012e0| 64 61 74 61 20 69 6e 20 | 61 20 73 74 72 65 61 6d |data in |a stream|
|000012f0| 69 6e 67 20 6d 61 6e 6e | 65 72 2e 20 20 49 66 20 |ing mann|er. If |
|00001300| 79 6f 75 20 77 61 6e 74 | 20 7a 65 72 6f 20 62 79 |you want| zero by|
|00001310| 74 65 73 20 62 65 63 61 | 75 73 65 20 6e 6f 20 62 |tes beca|use no b|
|00001320| 75 66 66 65 72 20 73 70 | 61 63 65 0d 2f 2f 20 69 |uffer sp|ace.// i|
|00001330| 73 20 59 45 54 20 61 76 | 61 69 6c 61 62 6c 65 2c |s YET av|ailable,|
|00001340| 20 72 65 74 75 72 6e 20 | 30 2e 20 20 41 73 20 6c | return |0. As l|
|00001350| 6f 6e 67 20 61 73 20 74 | 68 65 20 73 74 72 65 61 |ong as t|he strea|
|00001360| 6d 20 68 61 73 20 6e 6f | 74 20 62 65 65 6e 20 77 |m has no|t been w|
|00001370| 72 69 74 74 65 6e 0d 2f | 2f 20 74 6f 20 74 68 65 |ritten./|/ to the|
|00001380| 20 70 6c 75 67 69 6e 2c | 20 4e 61 76 69 67 61 74 | plugin,| Navigat|
|00001390| 6f 72 20 77 69 6c 6c 20 | 63 6f 6e 74 69 6e 75 65 |or will |continue|
|000013a0| 20 74 72 79 69 6e 67 20 | 74 6f 20 73 65 6e 64 20 | trying |to send |
|000013b0| 62 79 74 65 73 2e 20 20 | 49 66 20 74 68 65 20 70 |bytes. |If the p|
|000013c0| 6c 75 67 69 6e 0d 2f 2f | 20 64 6f 65 73 6e 27 74 |lugin.//| doesn't|
|000013d0| 20 77 61 6e 74 20 74 68 | 65 6d 2c 20 6a 75 73 74 | want th|em, just|
|000013e0| 20 72 65 74 75 72 6e 20 | 73 6f 6d 65 20 6c 61 72 | return |some lar|
|000013f0| 67 65 20 6e 75 6d 62 65 | 72 20 66 72 6f 6d 20 4e |ge numbe|r from N|
|00001400| 50 50 5f 57 72 69 74 65 | 52 65 61 64 79 28 29 2c |PP_Write|Ready(),|
|00001410| 20 61 6e 64 0d 2f 2f 20 | 69 67 6e 6f 72 65 20 74 | and.// |ignore t|
|00001420| 68 65 6d 20 69 6e 20 4e | 50 50 5f 57 72 69 74 65 |hem in N|PP_Write|
|00001430| 28 29 2e 20 20 46 6f 72 | 20 61 20 4e 50 5f 41 53 |(). For| a NP_AS|
|00001440| 46 49 4c 45 20 73 74 72 | 65 61 6d 2c 20 74 68 65 |FILE str|eam, the|
|00001450| 79 20 61 72 65 20 73 74 | 69 6c 6c 20 63 61 6c 6c |y are st|ill call|
|00001460| 65 64 0d 2f 2f 20 62 75 | 74 20 63 61 6e 20 73 61 |ed.// bu|t can sa|
|00001470| 66 65 6c 79 20 62 65 20 | 69 67 6e 6f 72 65 64 20 |fely be |ignored |
|00001480| 75 73 69 6e 67 20 74 68 | 69 73 20 73 74 72 61 74 |using th|is strat|
|00001490| 65 67 79 2e 0d 2f 2f 0d | 0d 69 6e 74 33 32 20 53 |egy..//.|.int32 S|
|000014a0| 54 52 45 41 4d 42 55 46 | 53 49 5a 45 20 3d 20 30 |TREAMBUF|SIZE = 0|
|000014b0| 58 30 46 46 46 46 46 46 | 46 3b 20 20 20 2f 2f 20 |X0FFFFFF|F; // |
|000014c0| 49 66 20 77 65 20 61 72 | 65 20 72 65 61 64 69 6e |If we ar|e readin|
|000014d0| 67 20 66 72 6f 6d 20 61 | 20 66 69 6c 65 20 69 6e |g from a| file in|
|000014e0| 20 4e 50 41 73 46 69 6c | 65 0d 20 20 20 20 20 20 | NPAsFil|e. |
|000014f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2f | | //|
|00001510| 20 6d 6f 64 65 20 73 6f | 20 77 65 20 63 61 6e 20 | mode so| we can |
|00001520| 74 61 6b 65 20 61 6e 79 | 20 73 69 7a 65 20 73 74 |take any| size st|
|00001530| 72 65 61 6d 20 69 6e 20 | 6f 75 72 0d 20 20 20 20 |ream in |our. |
|00001540| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001560| 2f 2f 20 77 72 69 74 65 | 20 63 61 6c 6c 20 28 73 |// write| call (s|
|00001570| 69 6e 63 65 20 77 65 20 | 69 67 6e 6f 72 65 20 69 |ince we |ignore i|
|00001580| 74 29 0d 0d 2f 2f 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |t)..//--|--------|
|00001590| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000015a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000015b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000015c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000015d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0d 2f 2f 20 4e 50 |--------|--.// NP|
|000015e0| 50 5f 57 72 69 74 65 52 | 65 61 64 79 3a 0d 2f 2f |P_WriteR|eady:.//|
|000015f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001600| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001610| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001620| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001630| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001640| 2d 2d 2d 2d 0d 69 6e 74 | 33 32 20 4e 50 50 5f 57 |----.int|32 NPP_W|
|00001650| 72 69 74 65 52 65 61 64 | 79 28 4e 50 50 20 69 6e |riteRead|y(NPP in|
|00001660| 73 74 61 6e 63 65 2c 20 | 4e 50 53 74 72 65 61 6d |stance, |NPStream|
|00001670| 20 2a 73 74 72 65 61 6d | 29 0d 7b 0d 09 69 66 20 | *stream|).{..if |
|00001680| 28 69 6e 73 74 61 6e 63 | 65 20 21 3d 20 4e 55 4c |(instanc|e != NUL|
|00001690| 4c 29 0d 09 7b 0d 09 09 | 50 6c 75 67 69 6e 49 6e |L)..{...|PluginIn|
|000016a0| 73 74 61 6e 63 65 2a 20 | 54 68 69 73 20 3d 20 28 |stance* |This = (|
|000016b0| 50 6c 75 67 69 6e 49 6e | 73 74 61 6e 63 65 2a 29 |PluginIn|stance*)|
|000016c0| 20 69 6e 73 74 61 6e 63 | 65 2d 3e 70 64 61 74 61 | instanc|e->pdata|
|000016d0| 3b 0d 09 0d 09 7d 0d 0d | 09 72 65 74 75 72 6e 20 |;....}..|.return |
|000016e0| 53 54 52 45 41 4d 42 55 | 46 53 49 5a 45 3b 20 20 |STREAMBU|FSIZE; |
|000016f0| 20 2f 2f 20 4e 75 6d 62 | 65 72 20 6f 66 20 62 79 | // Numb|er of by|
|00001700| 74 65 73 20 72 65 61 64 | 79 20 74 6f 20 61 63 63 |tes read|y to acc|
|00001710| 65 70 74 20 69 6e 20 4e | 50 50 5f 57 72 69 74 65 |ept in N|PP_Write|
|00001720| 28 29 0d 7d 0d 0d 0d 0d | 2f 2f 2d 2d 2d 2d 2d 2d |().}....|//------|
|00001730| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001740| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001750| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001760| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001770| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0d 2f |--------|------./|
|00001780| 2f 20 4e 50 50 5f 57 72 | 69 74 65 3a 0d 2f 2f 2d |/ NPP_Wr|ite:.//-|
|00001790| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000017a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000017b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000017c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000017d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000017e0| 2d 2d 2d 0d 69 6e 74 33 | 32 20 4e 50 50 5f 57 72 |---.int3|2 NPP_Wr|
|000017f0| 69 74 65 28 4e 50 50 20 | 69 6e 73 74 61 6e 63 65 |ite(NPP |instance|
|00001800| 2c 20 4e 50 53 74 72 65 | 61 6d 20 2a 73 74 72 65 |, NPStre|am *stre|
|00001810| 61 6d 2c 20 69 6e 74 33 | 32 20 6f 66 66 73 65 74 |am, int3|2 offset|
|00001820| 2c 20 69 6e 74 33 32 20 | 6c 65 6e 2c 20 76 6f 69 |, int32 |len, voi|
|00001830| 64 20 2a 62 75 66 66 65 | 72 29 0d 7b 0d 09 69 66 |d *buffe|r).{..if|
|00001840| 20 28 69 6e 73 74 61 6e | 63 65 20 21 3d 20 4e 55 | (instan|ce != NU|
|00001850| 4c 4c 29 0d 09 7b 0d 09 | 09 69 66 28 20 73 74 72 |LL)..{..|.if( str|
|00001860| 65 61 6d 2d 3e 70 64 61 | 74 61 20 21 3d 20 4e 55 |eam->pda|ta != NU|
|00001870| 4c 4c 20 29 20 7b 0d 09 | 09 09 50 6c 75 67 69 6e |LL ) {..|..Plugin|
|00001880| 50 69 63 74 53 74 72 65 | 61 6d 2a 20 70 6c 75 67 |PictStre|am* plug|
|00001890| 69 6e 53 74 72 65 61 6d | 20 3d 20 28 50 6c 75 67 |inStream| = (Plug|
|000018a0| 69 6e 50 69 63 74 53 74 | 72 65 61 6d 2a 29 20 73 |inPictSt|ream*) s|
|000018b0| 74 72 65 61 6d 2d 3e 70 | 64 61 74 61 3b 0d 09 09 |tream->p|data;...|
|000018c0| 09 41 70 70 65 6e 64 44 | 61 74 61 28 70 6c 75 67 |.AppendD|ata(plug|
|000018d0| 69 6e 53 74 72 65 61 6d | 2c 20 6c 65 6e 2c 20 62 |inStream|, len, b|
|000018e0| 75 66 66 65 72 29 3b 0d | 09 09 09 72 65 74 75 72 |uffer);.|...retur|
|000018f0| 6e 20 6c 65 6e 3b 20 2f | 2f 20 54 68 65 20 6e 75 |n len; /|/ The nu|
|00001900| 6d 62 65 72 20 6f 66 20 | 62 79 74 65 73 20 61 63 |mber of |bytes ac|
|00001910| 63 65 70 74 65 64 0d 09 | 09 7d 0d 09 7d 0d 0d 09 |cepted..|.}..}...|
|00001920| 72 65 74 75 72 6e 20 2d | 31 3b 20 09 09 09 2f 2f |return -|1; ...//|
|00001930| 20 53 6f 6d 65 74 68 69 | 6e 67 20 77 65 6e 74 20 | Somethi|ng went |
|00001940| 77 72 6f 6e 67 2e 20 53 | 74 6f 70 20 74 68 65 20 |wrong. S|top the |
|00001950| 73 74 72 65 61 6d 2e 0d | 7d 0d 0d 0d 0d 2f 2f 2d |stream..|}....//-|
|00001960| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001970| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001980| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001990| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000019a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000019b0| 2d 2d 2d 0d 2f 2f 20 4e | 50 50 5f 44 65 73 74 72 |---.// N|PP_Destr|
|000019c0| 6f 79 53 74 72 65 61 6d | 3a 0d 2f 2f 2d 2d 2d 2d |oyStream|:.//----|
|000019d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000019e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000019f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001a00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001a10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001a20| 0d 4e 50 45 72 72 6f 72 | 20 4e 50 50 5f 44 65 73 |.NPError| NPP_Des|
|00001a30| 74 72 6f 79 53 74 72 65 | 61 6d 28 4e 50 50 20 69 |troyStre|am(NPP i|
|00001a40| 6e 73 74 61 6e 63 65 2c | 20 4e 50 53 74 72 65 61 |nstance,| NPStrea|
|00001a50| 6d 20 2a 73 74 72 65 61 | 6d 2c 20 4e 50 45 72 72 |m *strea|m, NPErr|
|00001a60| 6f 72 20 72 65 61 73 6f | 6e 29 0d 7b 0d 09 69 66 |or reaso|n).{..if|
|00001a70| 20 28 69 6e 73 74 61 6e | 63 65 20 3d 3d 20 4e 55 | (instan|ce == NU|
|00001a80| 4c 4c 29 0d 09 09 72 65 | 74 75 72 6e 20 4e 50 45 |LL)...re|turn NPE|
|00001a90| 52 52 5f 49 4e 56 41 4c | 49 44 5f 49 4e 53 54 41 |RR_INVAL|ID_INSTA|
|00001aa0| 4e 43 45 5f 45 52 52 4f | 52 3b 0d 09 50 6c 75 67 |NCE_ERRO|R;..Plug|
|00001ab0| 69 6e 49 6e 73 74 61 6e | 63 65 2a 20 54 68 69 73 |inInstan|ce* This|
|00001ac0| 20 3d 20 28 50 6c 75 67 | 69 6e 49 6e 73 74 61 6e | = (Plug|inInstan|
|00001ad0| 63 65 2a 29 20 69 6e 73 | 74 61 6e 63 65 2d 3e 70 |ce*) ins|tance->p|
|00001ae0| 64 61 74 61 3b 0d 09 50 | 6c 75 67 69 6e 50 69 63 |data;..P|luginPic|
|00001af0| 74 53 74 72 65 61 6d 2a | 20 70 6c 75 67 69 6e 53 |tStream*| pluginS|
|00001b00| 74 72 65 61 6d 20 3d 20 | 28 50 6c 75 67 69 6e 50 |tream = |(PluginP|
|00001b10| 69 63 74 53 74 72 65 61 | 6d 2a 29 20 73 74 72 65 |ictStrea|m*) stre|
|00001b20| 61 6d 2d 3e 70 64 61 74 | 61 3b 0d 09 0d 09 69 66 |am->pdat|a;....if|
|00001b30| 20 28 70 6c 75 67 69 6e | 53 74 72 65 61 6d 2d 3e | (plugin|Stream->|
|00001b40| 66 49 6e 63 6f 6d 69 6e | 67 50 69 63 74 20 21 3d |fIncomin|gPict !=|
|00001b50| 20 4e 55 4c 4c 29 09 0d | 09 7b 0d 09 09 42 6c 6f | NULL)..|.{...Blo|
|00001b60| 63 6b 4d 6f 76 65 28 09 | 28 2a 70 6c 75 67 69 6e |ckMove(.|(*plugin|
|00001b70| 53 74 72 65 61 6d 2d 3e | 66 49 6e 63 6f 6d 69 6e |Stream->|fIncomin|
|00001b80| 67 50 69 63 74 29 2b 35 | 31 32 2c 20 2f 2f 20 50 |gPict)+5|12, // P|
|00001b90| 69 63 74 75 72 65 73 20 | 68 61 76 65 20 35 31 32 |ictures |have 512|
|00001ba0| 20 65 78 74 72 61 20 62 | 79 74 65 73 20 0d 09 09 | extra b|ytes ...|
|00001bb0| 09 09 09 28 2a 70 6c 75 | 67 69 6e 53 74 72 65 61 |...(*plu|ginStrea|
|00001bc0| 6d 2d 3e 66 49 6e 63 6f | 6d 69 6e 67 50 69 63 74 |m->fInco|mingPict|
|00001bd0| 29 2c 20 09 2f 2f 20 6f | 66 20 64 61 74 61 20 61 |), .// o|f data a|
|00001be0| 74 20 74 68 65 20 62 65 | 67 69 6e 6e 69 6e 67 2e |t the be|ginning.|
|00001bf0| 0d 09 09 09 09 09 70 6c | 75 67 69 6e 53 74 72 65 |......pl|uginStre|
|00001c00| 61 6d 2d 3e 66 49 6e 63 | 6f 6d 69 6e 67 50 69 63 |am->fInc|omingPic|
|00001c10| 74 4c 65 6e 67 74 68 20 | 2d 20 35 31 32 29 3b 0d |tLength |- 512);.|
|00001c20| 09 09 09 09 09 0d 09 09 | 70 6c 75 67 69 6e 53 74 |........|pluginSt|
|00001c30| 72 65 61 6d 2d 3e 66 49 | 6e 63 6f 6d 69 6e 67 50 |ream->fI|ncomingP|
|00001c40| 69 63 74 4c 65 6e 67 74 | 68 20 2d 3d 20 35 31 32 |ictLengt|h -= 512|
|00001c50| 3b 0d 09 09 69 66 28 20 | 54 68 69 73 2d 3e 66 50 |;...if( |This->fP|
|00001c60| 69 63 74 20 21 3d 20 4e | 55 4c 4c 20 29 20 7b 09 |ict != N|ULL ) {.|
|00001c70| 09 09 09 2f 2f 20 49 66 | 20 74 68 65 72 65 20 77 |...// If| there w|
|00001c80| 61 73 20 61 6c 72 65 61 | 64 79 20 61 20 70 69 63 |as alrea|dy a pic|
|00001c90| 74 75 72 65 20 62 65 69 | 6e 67 20 64 69 73 70 6c |ture bei|ng displ|
|00001ca0| 61 79 65 64 2c 0d 09 09 | 09 3a 3a 44 69 73 70 6f |ayed,...|.::Dispo|
|00001cb0| 73 65 48 61 6e 64 6c 65 | 28 20 54 68 69 73 2d 3e |seHandle|( This->|
|00001cc0| 66 50 69 63 74 20 29 3b | 09 09 2f 2f 20 64 69 73 |fPict );|..// dis|
|00001cd0| 70 6f 73 65 20 6f 66 20 | 69 74 2e 0d 09 09 7d 0d |pose of |it....}.|
|00001ce0| 09 09 0d 09 09 54 68 69 | 73 2d 3e 66 50 69 63 74 |.....Thi|s->fPict|
|00001cf0| 20 3d 20 70 6c 75 67 69 | 6e 53 74 72 65 61 6d 2d | = plugi|nStream-|
|00001d00| 3e 66 49 6e 63 6f 6d 69 | 6e 67 50 69 63 74 3b 09 |>fIncomi|ngPict;.|
|00001d10| 09 0d 09 09 70 6c 75 67 | 69 6e 53 74 72 65 61 6d |....plug|inStream|
|00001d20| 2d 3e 66 49 6e 63 6f 6d | 69 6e 67 50 69 63 74 20 |->fIncom|ingPict |
|00001d30| 3d 20 4e 55 4c 4c 3b 09 | 09 2f 2f 20 44 69 73 70 |= NULL;.|.// Disp|
|00001d40| 6f 73 65 20 6f 66 20 74 | 68 65 20 73 74 72 65 61 |ose of t|he strea|
|00001d50| 6d 20 73 74 72 75 63 74 | 75 72 65 0d 09 09 4e 50 |m struct|ure...NP|
|00001d60| 4e 5f 4d 65 6d 46 72 65 | 65 28 20 70 6c 75 67 69 |N_MemFre|e( plugi|
|00001d70| 6e 53 74 72 65 61 6d 20 | 29 3b 0d 09 09 73 74 72 |nStream |);...str|
|00001d80| 65 61 6d 2d 3e 70 64 61 | 74 61 20 3d 20 4e 55 4c |eam->pda|ta = NUL|
|00001d90| 4c 3b 0d 09 09 0d 09 09 | 69 66 20 28 53 74 61 72 |L;......|if (Star|
|00001da0| 74 44 72 61 77 28 54 68 | 69 73 2d 3e 66 57 69 6e |tDraw(Th|is->fWin|
|00001db0| 64 6f 77 29 29 0d 09 09 | 7b 0d 09 09 09 44 6f 44 |dow))...|{....DoD|
|00001dc0| 72 61 77 28 54 68 69 73 | 29 3b 0d 09 09 09 45 6e |raw(This|);....En|
|00001dd0| 64 44 72 61 77 28 54 68 | 69 73 2d 3e 66 57 69 6e |dDraw(Th|is->fWin|
|00001de0| 64 6f 77 29 3b 0d 09 09 | 7d 0d 09 7d 0d 0d 09 72 |dow);...|}..}...r|
|00001df0| 65 74 75 72 6e 20 4e 50 | 45 52 52 5f 4e 4f 5f 45 |eturn NP|ERR_NO_E|
|00001e00| 52 52 4f 52 3b 0d 7d 0d | 0d 0d 2f 2f 2d 2d 2d 2d |RROR;.}.|..//----|
|00001e10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001e20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001e30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001e40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001e50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001e60| 0d 2f 2f 20 4e 50 50 5f | 53 74 72 65 61 6d 41 73 |.// NPP_|StreamAs|
|00001e70| 46 69 6c 65 3a 0d 2f 2f | 2d 2d 2d 2d 2d 2d 2d 2d |File:.//|--------|
|00001e80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001e90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001ea0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001eb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001ec0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 76 6f 69 |--------|----.voi|
|00001ed0| 64 20 4e 50 50 5f 53 74 | 72 65 61 6d 41 73 46 69 |d NPP_St|reamAsFi|
|00001ee0| 6c 65 28 4e 50 50 20 69 | 6e 73 74 61 6e 63 65 2c |le(NPP i|nstance,|
|00001ef0| 20 4e 50 53 74 72 65 61 | 6d 20 2a 73 74 72 65 61 | NPStrea|m *strea|
|00001f00| 6d 2c 20 63 6f 6e 73 74 | 20 63 68 61 72 2a 20 66 |m, const| char* f|
|00001f10| 6e 61 6d 65 29 0d 7b 0d | 2f 2f 20 57 65 20 64 6f |name).{.|// We do|
|00001f20| 6e d5 74 20 73 75 70 70 | 6f 72 74 20 66 69 6c 65 |n.t supp|ort file|
|00001f30| 73 0d 7d 0d 0d 0d 0d 2f | 2f 2d 2d 2d 2d 2d 2d 2d |s.}..../|/-------|
|00001f40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001f50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001f60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001f70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001f80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0d 2f 2f |--------|-----.//|
|00001f90| 20 4e 50 50 5f 50 72 69 | 6e 74 3a 0d 2f 2f 2d 2d | NPP_Pri|nt:.//--|
|00001fa0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001fb0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001fc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001fd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001fe0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001ff0| 2d 2d 0d 76 6f 69 64 20 | 4e 50 50 5f 50 72 69 6e |--.void |NPP_Prin|
|00002000| 74 28 4e 50 50 20 69 6e | 73 74 61 6e 63 65 2c 20 |t(NPP in|stance, |
|00002010| 4e 50 50 72 69 6e 74 2a | 20 70 72 69 6e 74 49 6e |NPPrint*| printIn|
|00002020| 66 6f 29 0d 7b 0d 09 69 | 66 20 28 69 6e 73 74 61 |fo).{..i|f (insta|
|00002030| 6e 63 65 20 21 3d 20 4e | 55 4c 4c 29 0d 09 7b 0d |nce != N|ULL)..{.|
|00002040| 09 09 50 6c 75 67 69 6e | 49 6e 73 74 61 6e 63 65 |..Plugin|Instance|
|00002050| 2a 20 54 68 69 73 20 3d | 20 28 50 6c 75 67 69 6e |* This =| (Plugin|
|00002060| 49 6e 73 74 61 6e 63 65 | 2a 29 20 69 6e 73 74 61 |Instance|*) insta|
|00002070| 6e 63 65 2d 3e 70 64 61 | 74 61 3b 0d 09 0d 09 09 |nce->pda|ta;.....|
|00002080| 69 66 20 28 70 72 69 6e | 74 49 6e 66 6f 2d 3e 6d |if (prin|tInfo->m|
|00002090| 6f 64 65 20 3d 3d 20 4e | 50 5f 46 55 4c 4c 29 0d |ode == N|P_FULL).|
|000020a0| 09 09 7b 0d 09 09 09 2f | 2f 0d 09 09 09 2f 2f 20 |..{..../|/....// |
|000020b0| 49 66 20 77 65 d5 72 65 | 20 66 75 6c 6c 73 63 72 |If we.re| fullscr|
|000020c0| 65 65 6e 2c 20 77 65 20 | 64 6f 6e d5 74 20 77 61 |een, we |don.t wa|
|000020d0| 6e 74 20 74 6f 20 74 61 | 6b 65 20 6f 76 65 72 20 |nt to ta|ke over |
|000020e0| 70 72 69 6e 74 69 6e 67 | 2c 0d 09 09 09 2f 2f 20 |printing|,....// |
|000020f0| 73 6f 20 72 65 74 75 72 | 6e 20 66 61 6c 73 65 2e |so retur|n false.|
|00002100| 20 20 4e 50 50 5f 50 72 | 69 6e 74 20 77 69 6c 6c | NPP_Pr|int will|
|00002110| 20 62 65 20 63 61 6c 6c | 65 64 20 61 67 61 69 6e | be call|ed again|
|00002120| 20 77 69 74 68 0d 09 09 | 09 2f 2f 20 6d 6f 64 65 | with...|.// mode|
|00002130| 20 3d 3d 20 4e 50 5f 45 | 4d 42 45 44 2e 0d 09 09 | == NP_E|MBED....|
|00002140| 09 2f 2f 0d 09 09 09 70 | 72 69 6e 74 49 6e 66 6f |.//....p|rintInfo|
|00002150| 2d 3e 70 72 69 6e 74 2e | 66 75 6c 6c 50 72 69 6e |->print.|fullPrin|
|00002160| 74 2e 70 6c 75 67 69 6e | 50 72 69 6e 74 65 64 20 |t.plugin|Printed |
|00002170| 3d 20 66 61 6c 73 65 3b | 0d 09 09 7d 0d 09 09 65 |= false;|...}...e|
|00002180| 6c 73 65 09 2f 2f 20 49 | 66 20 6e 6f 74 20 66 75 |lse.// I|f not fu|
|00002190| 6c 6c 73 63 72 65 65 6e | 2c 20 77 65 20 6d 75 73 |llscreen|, we mus|
|000021a0| 74 20 62 65 20 65 6d 62 | 65 64 64 65 64 0d 09 09 |t be emb|edded...|
|000021b0| 7b 0d 09 09 09 4e 50 57 | 69 6e 64 6f 77 2a 20 70 |{....NPW|indow* p|
|000021c0| 72 69 6e 74 57 69 6e 64 | 6f 77 20 3d 20 26 28 70 |rintWind|ow = &(p|
|000021d0| 72 69 6e 74 49 6e 66 6f | 2d 3e 70 72 69 6e 74 2e |rintInfo|->print.|
|000021e0| 65 6d 62 65 64 50 72 69 | 6e 74 2e 77 69 6e 64 6f |embedPri|nt.windo|
|000021f0| 77 29 3b 0d 09 09 09 69 | 66 20 28 53 74 61 72 74 |w);....i|f (Start|
|00002200| 44 72 61 77 28 70 72 69 | 6e 74 57 69 6e 64 6f 77 |Draw(pri|ntWindow|
|00002210| 29 29 0d 09 09 09 7b 0d | 09 09 09 09 44 6f 44 72 |))....{.|....DoDr|
|00002220| 61 77 28 54 68 69 73 29 | 3b 0d 09 09 09 09 45 6e |aw(This)|;.....En|
|00002230| 64 44 72 61 77 28 70 72 | 69 6e 74 57 69 6e 64 6f |dDraw(pr|intWindo|
|00002240| 77 29 3b 0d 09 09 09 7d | 0d 09 09 7d 0d 09 7d 0d |w);....}|...}..}.|
|00002250| 0d 7d 0d 0d 0d 2f 2f 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.}...//-|--------|
|00002260| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002270| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002280| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002290| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000022a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 2f 2f 20 4e |--------|---.// N|
|000022b0| 50 50 5f 48 61 6e 64 6c | 65 45 76 65 6e 74 3a 0d |PP_Handl|eEvent:.|
|000022c0| 2f 2f 20 4d 61 63 2d 6f | 6e 6c 79 2e 0d 2f 2f 2d |// Mac-o|nly..//-|
|000022d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000022e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000022f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002300| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002310| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002320| 2d 2d 2d 0d 69 6e 74 31 | 36 20 4e 50 50 5f 48 61 |---.int1|6 NPP_Ha|
|00002330| 6e 64 6c 65 45 76 65 6e | 74 28 4e 50 50 20 69 6e |ndleEven|t(NPP in|
|00002340| 73 74 61 6e 63 65 2c 20 | 76 6f 69 64 2a 20 65 76 |stance, |void* ev|
|00002350| 65 6e 74 29 0d 7b 0d 09 | 42 6f 6f 6c 65 61 6e 20 |ent).{..|Boolean |
|00002360| 65 76 65 6e 74 48 61 6e | 64 6c 65 64 20 3d 20 66 |eventHan|dled = f|
|00002370| 61 6c 73 65 3b 0d 09 69 | 66 20 28 69 6e 73 74 61 |alse;..i|f (insta|
|00002380| 6e 63 65 20 3d 3d 20 4e | 55 4c 4c 29 0d 09 09 72 |nce == N|ULL)...r|
|00002390| 65 74 75 72 6e 20 65 76 | 65 6e 74 48 61 6e 64 6c |eturn ev|entHandl|
|000023a0| 65 64 3b 0d 09 09 0d 09 | 50 6c 75 67 69 6e 49 6e |ed;.....|PluginIn|
|000023b0| 73 74 61 6e 63 65 2a 20 | 54 68 69 73 20 3d 20 28 |stance* |This = (|
|000023c0| 50 6c 75 67 69 6e 49 6e | 73 74 61 6e 63 65 2a 29 |PluginIn|stance*)|
|000023d0| 20 69 6e 73 74 61 6e 63 | 65 2d 3e 70 64 61 74 61 | instanc|e->pdata|
|000023e0| 3b 0d 09 69 66 20 28 54 | 68 69 73 20 21 3d 20 4e |;..if (T|his != N|
|000023f0| 55 4c 4c 20 26 26 20 65 | 76 65 6e 74 20 21 3d 20 |ULL && e|vent != |
|00002400| 4e 55 4c 4c 29 0d 09 7b | 0d 09 09 45 76 65 6e 74 |NULL)..{|...Event|
|00002410| 52 65 63 6f 72 64 2a 20 | 65 76 20 3d 20 28 45 76 |Record* |ev = (Ev|
|00002420| 65 6e 74 52 65 63 6f 72 | 64 2a 29 20 65 76 65 6e |entRecor|d*) even|
|00002430| 74 3b 0d 09 09 73 77 69 | 74 63 68 20 28 65 76 2d |t;...swi|tch (ev-|
|00002440| 3e 77 68 61 74 29 0d 09 | 09 7b 0d 09 09 09 2f 2f |>what)..|.{....//|
|00002450| 0d 09 09 09 2f 2f 20 44 | 72 61 77 20 6f 75 72 73 |....// D|raw ours|
|00002460| 65 6c 76 65 73 20 6f 6e | 20 75 70 64 61 74 65 20 |elves on| update |
|00002470| 65 76 65 6e 74 73 0d 09 | 09 09 2f 2f 0d 09 09 09 |events..|..//....|
|00002480| 63 61 73 65 20 75 70 64 | 61 74 65 45 76 74 3a 0d |case upd|ateEvt:.|
|00002490| 09 09 09 09 44 6f 44 72 | 61 77 28 54 68 69 73 29 |....DoDr|aw(This)|
|000024a0| 3b 0d 09 09 09 09 65 76 | 65 6e 74 48 61 6e 64 6c |;.....ev|entHandl|
|000024b0| 65 64 20 3d 20 74 72 75 | 65 3b 0d 09 09 09 09 62 |ed = tru|e;.....b|
|000024c0| 72 65 61 6b 3b 0d 09 09 | 09 09 0d 09 09 09 64 65 |reak;...|......de|
|000024d0| 66 61 75 6c 74 3a 0d 09 | 09 09 09 62 72 65 61 6b |fault:..|...break|
|000024e0| 3b 0d 09 09 7d 0d 09 09 | 09 0d 09 7d 0d 09 0d 09 |;...}...|...}....|
|000024f0| 72 65 74 75 72 6e 20 65 | 76 65 6e 74 48 61 6e 64 |return e|ventHand|
|00002500| 6c 65 64 3b 0d 7d 0d 0d | 2f 2f 2d 2d 2d 2d 2d 2d |led;.}..|//------|
|00002510| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002520| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002530| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002540| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002550| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0d 2f |--------|------./|
|00002560| 2f 20 4e 50 50 5f 55 52 | 4c 4e 6f 74 69 66 79 3a |/ NPP_UR|LNotify:|
|00002570| 20 43 75 72 72 65 6e 74 | 6c 79 20 6a 75 73 74 20 | Current|ly just |
|00002580| 61 20 73 74 75 62 20 66 | 6f 72 20 63 6f 6d 70 61 |a stub f|or compa|
|00002590| 74 69 62 69 6c 69 74 79 | 20 77 69 74 68 20 74 68 |tibility| with th|
|000025a0| 65 20 6e 65 77 20 41 50 | 49 0d 2f 2f 2d 2d 2d 2d |e new AP|I.//----|
|000025b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000025c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000025d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000025e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000025f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002600| 0d 76 6f 69 64 20 4e 50 | 50 5f 55 52 4c 4e 6f 74 |.void NP|P_URLNot|
|00002610| 69 66 79 28 4e 50 50 20 | 69 6e 73 74 61 6e 63 65 |ify(NPP |instance|
|00002620| 2c 20 63 6f 6e 73 74 20 | 63 68 61 72 2a 20 75 72 |, const |char* ur|
|00002630| 6c 2c 20 4e 50 52 65 61 | 73 6f 6e 20 72 65 61 73 |l, NPRea|son reas|
|00002640| 6f 6e 2c 20 76 6f 69 64 | 2a 20 6e 6f 74 69 66 79 |on, void|* notify|
|00002650| 44 61 74 61 29 0d 7b 0d | 7d 0d 0d 2f 2f 2d 2d 2d |Data).{.|}..//---|
|00002660| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002670| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002680| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002690| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000026a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000026b0| 2d 0d 2f 2f 20 4e 50 50 | 5f 47 65 74 4a 61 76 61 |-.// NPP|_GetJava|
|000026c0| 43 6c 61 73 73 3a 20 43 | 75 72 72 65 6e 74 6c 79 |Class: C|urrently|
|000026d0| 20 6a 75 73 74 20 61 20 | 73 74 75 62 20 66 6f 72 | just a |stub for|
|000026e0| 20 63 6f 6d 70 61 74 69 | 62 69 6c 69 74 79 20 77 | compati|bility w|
|000026f0| 69 74 68 20 74 68 65 20 | 6e 65 77 20 41 50 49 0d |ith the |new API.|
|00002700| 2f 2f 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |//------|--------|
|00002710| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002720| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002730| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002740| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002750| 2d 2d 2d 2d 2d 2d 0d 6a | 72 65 66 20 4e 50 50 5f |------.j|ref NPP_|
|00002760| 47 65 74 4a 61 76 61 43 | 6c 61 73 73 28 76 6f 69 |GetJavaC|lass(voi|
|00002770| 64 29 0d 7b 0d 09 4a 52 | 49 45 6e 76 2a 20 65 6e |d).{..JR|IEnv* en|
|00002780| 76 20 3d 20 4e 50 4e 5f | 47 65 74 4a 61 76 61 45 |v = NPN_|GetJavaE|
|00002790| 6e 76 28 29 3b 0d 09 6a | 72 65 66 20 74 68 65 52 |nv();..j|ref theR|
|000027a0| 65 66 20 3d 20 28 6a 72 | 65 66 29 20 52 65 6c 6f |ef = (jr|ef) Relo|
|000027b0| 63 61 74 61 62 6c 65 50 | 6c 75 67 69 6e 3a 3a 5f |catableP|lugin::_|
|000027c0| 72 65 67 69 73 74 65 72 | 28 20 65 6e 76 20 29 3b |register|( env );|
|000027d0| 0d 09 6e 65 74 73 63 61 | 70 65 5f 70 6c 75 67 69 |..netsca|pe_plugi|
|000027e0| 6e 5f 50 6c 75 67 69 6e | 3a 3a 5f 75 73 65 28 20 |n_Plugin|::_use( |
|000027f0| 65 6e 76 20 29 3b 0d 09 | 67 55 73 69 6e 67 4a 61 |env );..|gUsingJa|
|00002800| 76 61 20 3d 20 74 72 75 | 65 3b 0d 09 72 65 74 75 |va = tru|e;..retu|
|00002810| 72 6e 20 74 68 65 52 65 | 66 3b 0d 7d 0d 0d 0d 2f |rn theRe|f;.}.../|
|00002820| 2f 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |/-------|--------|
|00002830| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002840| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002850| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002860| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002870| 2d 2d 2d 2d 2d 0d 2f 2f | 20 41 70 70 65 6e 64 44 |-----.//| AppendD|
|00002880| 61 74 61 3a 0d 2f 2f 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ata:.//-|--------|
|00002890| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000028a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000028b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000028c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000028d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 76 6f 69 64 |--------|---.void|
|000028e0| 20 41 70 70 65 6e 64 44 | 61 74 61 28 50 6c 75 67 | AppendD|ata(Plug|
|000028f0| 69 6e 50 69 63 74 53 74 | 72 65 61 6d 2a 20 54 68 |inPictSt|ream* Th|
|00002900| 69 73 2c 20 75 6e 73 69 | 67 6e 65 64 20 6c 6f 6e |is, unsi|gned lon|
|00002910| 67 20 6c 65 6e 2c 20 76 | 6f 69 64 20 2a 62 75 66 |g len, v|oid *buf|
|00002920| 66 65 72 29 0d 7b 0d 09 | 69 66 20 28 54 68 69 73 |fer).{..|if (This|
|00002930| 2d 3e 66 49 6e 63 6f 6d | 69 6e 67 50 69 63 74 20 |->fIncom|ingPict |
|00002940| 3d 3d 20 4e 55 4c 4c 29 | 0d 09 7b 0d 09 09 54 68 |== NULL)|..{...Th|
|00002950| 69 73 2d 3e 66 49 6e 63 | 6f 6d 69 6e 67 50 69 63 |is->fInc|omingPic|
|00002960| 74 20 3d 20 3a 3a 4e 65 | 77 48 61 6e 64 6c 65 28 |t = ::Ne|wHandle(|
|00002970| 6c 65 6e 29 3b 0d 09 09 | 54 68 69 73 2d 3e 66 49 |len);...|This->fI|
|00002980| 6e 63 6f 6d 69 6e 67 50 | 69 63 74 4c 65 6e 67 74 |ncomingP|ictLengt|
|00002990| 68 20 3d 20 30 3b 0d 09 | 7d 0d 09 65 6c 73 65 0d |h = 0;..|}..else.|
|000029a0| 09 09 53 65 74 48 61 6e | 64 6c 65 53 69 7a 65 28 |..SetHan|dleSize(|
|000029b0| 54 68 69 73 2d 3e 66 49 | 6e 63 6f 6d 69 6e 67 50 |This->fI|ncomingP|
|000029c0| 69 63 74 2c 20 47 65 74 | 48 61 6e 64 6c 65 53 69 |ict, Get|HandleSi|
|000029d0| 7a 65 28 54 68 69 73 2d | 3e 66 49 6e 63 6f 6d 69 |ze(This-|>fIncomi|
|000029e0| 6e 67 50 69 63 74 29 2b | 6c 65 6e 29 3b 0d 0d 09 |ngPict)+|len);...|
|000029f0| 42 6c 6f 63 6b 4d 6f 76 | 65 28 62 75 66 66 65 72 |BlockMov|e(buffer|
|00002a00| 2c 20 28 2a 54 68 69 73 | 2d 3e 66 49 6e 63 6f 6d |, (*This|->fIncom|
|00002a10| 69 6e 67 50 69 63 74 29 | 2b 54 68 69 73 2d 3e 66 |ingPict)|+This->f|
|00002a20| 49 6e 63 6f 6d 69 6e 67 | 50 69 63 74 4c 65 6e 67 |Incoming|PictLeng|
|00002a30| 74 68 2c 20 6c 65 6e 29 | 3b 0d 09 54 68 69 73 2d |th, len)|;..This-|
|00002a40| 3e 66 49 6e 63 6f 6d 69 | 6e 67 50 69 63 74 4c 65 |>fIncomi|ngPictLe|
|00002a50| 6e 67 74 68 20 2b 3d 20 | 6c 65 6e 3b 0d 7d 0d 0d |ngth += |len;.}..|
|00002a60| 0d 2f 2f 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.//-----|--------|
|00002a70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002a80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002a90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002aa0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002ab0| 2d 2d 2d 2d 2d 2d 2d 0d | 2f 2f 20 53 74 61 72 74 |-------.|// Start|
|00002ac0| 44 72 61 77 3a 0d 2f 2f | 2d 2d 2d 2d 2d 2d 2d 2d |Draw:.//|--------|
|00002ad0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002ae0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002af0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002b00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002b10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 42 6f 6f |--------|----.Boo|
|00002b20| 6c 65 61 6e 20 53 74 61 | 72 74 44 72 61 77 28 4e |lean Sta|rtDraw(N|
|00002b30| 50 57 69 6e 64 6f 77 2a | 20 77 69 6e 64 6f 77 29 |PWindow*| window)|
|00002b40| 0d 7b 0d 09 69 66 20 28 | 77 69 6e 64 6f 77 20 3d |.{..if (|window =|
|00002b50| 3d 20 4e 55 4c 4c 29 0d | 09 09 72 65 74 75 72 6e |= NULL).|..return|
|00002b60| 20 46 41 4c 53 45 3b 0d | 09 4e 50 5f 50 6f 72 74 | FALSE;.|.NP_Port|
|00002b70| 2a 20 70 6f 72 74 20 3d | 20 28 4e 50 5f 50 6f 72 |* port =| (NP_Por|
|00002b80| 74 2a 29 20 77 69 6e 64 | 6f 77 2d 3e 77 69 6e 64 |t*) wind|ow->wind|
|00002b90| 6f 77 3b 0d 09 69 66 20 | 28 77 69 6e 64 6f 77 2d |ow;..if |(window-|
|00002ba0| 3e 63 6c 69 70 52 65 63 | 74 2e 6c 65 66 74 20 3c |>clipRec|t.left <|
|00002bb0| 20 77 69 6e 64 6f 77 2d | 3e 63 6c 69 70 52 65 63 | window-|>clipRec|
|00002bc0| 74 2e 72 69 67 68 74 29 | 0d 09 7b 0d 09 2f 2f 20 |t.right)|..{..// |
|00002bd0| 50 72 65 73 65 72 76 65 | 20 74 68 65 20 6f 6c 64 |Preserve| the old|
|00002be0| 20 70 6f 72 74 0d 09 09 | 3a 3a 47 65 74 50 6f 72 | port...|::GetPor|
|00002bf0| 74 28 28 47 72 61 66 50 | 74 72 2a 29 26 67 4f 6c |t((GrafP|tr*)&gOl|
|00002c00| 64 50 6f 72 74 29 3b 0d | 09 09 3a 3a 53 65 74 50 |dPort);.|..::SetP|
|00002c10| 6f 72 74 28 28 47 72 61 | 66 50 74 72 29 70 6f 72 |ort((Gra|fPtr)por|
|00002c20| 74 2d 3e 70 6f 72 74 29 | 3b 0d 09 2f 2f 20 50 72 |t->port)|;..// Pr|
|00002c30| 65 73 65 72 76 65 20 74 | 68 65 20 6f 6c 64 20 64 |eserve t|he old d|
|00002c40| 72 61 77 69 6e 67 20 65 | 6e 76 69 72 6f 6e 6d 65 |rawing e|nvironme|
|00002c50| 6e 74 0d 09 09 67 53 61 | 76 65 50 6f 72 74 2e 70 |nt...gSa|vePort.p|
|00002c60| 6f 72 74 52 65 63 74 20 | 3d 20 70 6f 72 74 2d 3e |ortRect |= port->|
|00002c70| 70 6f 72 74 2d 3e 70 6f | 72 74 52 65 63 74 3b 0d |port->po|rtRect;.|
|00002c80| 09 09 67 53 61 76 65 50 | 6f 72 74 2e 74 78 46 6f |..gSaveP|ort.txFo|
|00002c90| 6e 74 20 3d 20 70 6f 72 | 74 2d 3e 70 6f 72 74 2d |nt = por|t->port-|
|00002ca0| 3e 74 78 46 6f 6e 74 3b | 0d 09 09 67 53 61 76 65 |>txFont;|...gSave|
|00002cb0| 50 6f 72 74 2e 74 78 46 | 61 63 65 20 3d 20 70 6f |Port.txF|ace = po|
|00002cc0| 72 74 2d 3e 70 6f 72 74 | 2d 3e 74 78 46 61 63 65 |rt->port|->txFace|
|00002cd0| 3b 0d 09 09 67 53 61 76 | 65 50 6f 72 74 2e 74 78 |;...gSav|ePort.tx|
|00002ce0| 4d 6f 64 65 20 3d 20 70 | 6f 72 74 2d 3e 70 6f 72 |Mode = p|ort->por|
|00002cf0| 74 2d 3e 74 78 4d 6f 64 | 65 3b 0d 09 09 67 53 61 |t->txMod|e;...gSa|
|00002d00| 76 65 50 6f 72 74 2e 72 | 67 62 46 67 43 6f 6c 6f |vePort.r|gbFgColo|
|00002d10| 72 20 3d 20 70 6f 72 74 | 2d 3e 70 6f 72 74 2d 3e |r = port|->port->|
|00002d20| 72 67 62 46 67 43 6f 6c | 6f 72 3b 0d 09 09 67 53 |rgbFgCol|or;...gS|
|00002d30| 61 76 65 50 6f 72 74 2e | 72 67 62 42 6b 43 6f 6c |avePort.|rgbBkCol|
|00002d40| 6f 72 20 3d 20 70 6f 72 | 74 2d 3e 70 6f 72 74 2d |or = por|t->port-|
|00002d50| 3e 72 67 62 42 6b 43 6f | 6c 6f 72 3b 0d 09 09 3a |>rgbBkCo|lor;...:|
|00002d60| 3a 47 65 74 43 6c 69 70 | 28 67 53 61 76 65 50 6f |:GetClip|(gSavePo|
|00002d70| 72 74 2e 63 6c 69 70 52 | 67 6e 29 3b 0d 09 2f 2f |rt.clipR|gn);..//|
|00002d80| 20 53 65 74 75 70 20 6f | 75 72 20 64 72 61 77 69 | Setup o|ur drawi|
|00002d90| 6e 67 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 0d 09 |ng envir|onment..|
|00002da0| 09 52 65 63 74 20 63 6c | 69 70 52 65 63 74 3b 0d |.Rect cl|ipRect;.|
|00002db0| 09 09 63 6c 69 70 52 65 | 63 74 2e 74 6f 70 20 3d |..clipRe|ct.top =|
|00002dc0| 20 77 69 6e 64 6f 77 2d | 3e 63 6c 69 70 52 65 63 | window-|>clipRec|
|00002dd0| 74 2e 74 6f 70 20 2b 20 | 70 6f 72 74 2d 3e 70 6f |t.top + |port->po|
|00002de0| 72 74 79 3b 0d 09 09 63 | 6c 69 70 52 65 63 74 2e |rty;...c|lipRect.|
|00002df0| 6c 65 66 74 20 3d 20 77 | 69 6e 64 6f 77 2d 3e 63 |left = w|indow->c|
|00002e00| 6c 69 70 52 65 63 74 2e | 6c 65 66 74 20 2b 20 70 |lipRect.|left + p|
|00002e10| 6f 72 74 2d 3e 70 6f 72 | 74 78 3b 0d 09 09 63 6c |ort->por|tx;...cl|
|00002e20| 69 70 52 65 63 74 2e 62 | 6f 74 74 6f 6d 20 3d 20 |ipRect.b|ottom = |
|00002e30| 77 69 6e 64 6f 77 2d 3e | 63 6c 69 70 52 65 63 74 |window->|clipRect|
|00002e40| 2e 62 6f 74 74 6f 6d 20 | 2b 20 70 6f 72 74 2d 3e |.bottom |+ port->|
|00002e50| 70 6f 72 74 79 3b 0d 09 | 09 63 6c 69 70 52 65 63 |porty;..|.clipRec|
|00002e60| 74 2e 72 69 67 68 74 20 | 3d 20 77 69 6e 64 6f 77 |t.right |= window|
|00002e70| 2d 3e 63 6c 69 70 52 65 | 63 74 2e 72 69 67 68 74 |->clipRe|ct.right|
|00002e80| 20 2b 20 70 6f 72 74 2d | 3e 70 6f 72 74 78 3b 0d | + port-|>portx;.|
|00002e90| 09 09 3a 3a 53 65 74 4f | 72 69 67 69 6e 28 70 6f |..::SetO|rigin(po|
|00002ea0| 72 74 2d 3e 70 6f 72 74 | 78 2c 70 6f 72 74 2d 3e |rt->port|x,port->|
|00002eb0| 70 6f 72 74 79 29 3b 0d | 09 09 3a 3a 43 6c 69 70 |porty);.|..::Clip|
|00002ec0| 52 65 63 74 28 26 63 6c | 69 70 52 65 63 74 29 3b |Rect(&cl|ipRect);|
|00002ed0| 0d 09 09 63 6c 69 70 52 | 65 63 74 2e 74 6f 70 20 |...clipR|ect.top |
|00002ee0| 3d 20 63 6c 69 70 52 65 | 63 74 2e 6c 65 66 74 20 |= clipRe|ct.left |
|00002ef0| 3d 20 30 3b 0d 09 09 54 | 65 78 74 53 69 7a 65 28 |= 0;...T|extSize(|
|00002f00| 77 69 6e 64 6f 77 2d 3e | 68 65 69 67 68 74 29 3b |window->|height);|
|00002f10| 0d 09 09 54 65 78 74 46 | 6f 6e 74 28 67 65 6e 65 |...TextF|ont(gene|
|00002f20| 76 61 29 3b 0d 09 09 54 | 65 78 74 4d 6f 64 65 28 |va);...T|extMode(|
|00002f30| 73 72 63 43 6f 70 79 29 | 3b 0d 09 09 52 47 42 43 |srcCopy)|;...RGBC|
|00002f40| 6f 6c 6f 72 20 20 63 6f | 6c 3b 0d 09 09 63 6f 6c |olor co|l;...col|
|00002f50| 2e 72 65 64 20 3d 20 63 | 6f 6c 2e 67 72 65 65 6e |.red = c|ol.green|
|00002f60| 20 3d 20 63 6f 6c 2e 62 | 6c 75 65 20 3d 20 33 30 | = col.b|lue = 30|
|00002f70| 30 30 30 3b 0d 09 09 52 | 47 42 46 6f 72 65 43 6f |000;...R|GBForeCo|
|00002f80| 6c 6f 72 28 26 63 6f 6c | 29 3b 0d 09 09 63 6f 6c |lor(&col|);...col|
|00002f90| 2e 72 65 64 20 3d 20 63 | 6f 6c 2e 67 72 65 65 6e |.red = c|ol.green|
|00002fa0| 20 3d 20 63 6f 6c 2e 62 | 6c 75 65 20 3d 20 36 35 | = col.b|lue = 65|
|00002fb0| 30 30 30 3b 0d 09 09 52 | 47 42 42 61 63 6b 43 6f |000;...R|GBBackCo|
|00002fc0| 6c 6f 72 28 26 63 6f 6c | 29 3b 0d 09 09 72 65 74 |lor(&col|);...ret|
|00002fd0| 75 72 6e 20 54 52 55 45 | 3b 0d 09 7d 0d 09 65 6c |urn TRUE|;..}..el|
|00002fe0| 73 65 0d 09 09 72 65 74 | 75 72 6e 20 46 41 4c 53 |se...ret|urn FALS|
|00002ff0| 45 3b 0d 7d 0d 0d 0d 2f | 2f 2d 2d 2d 2d 2d 2d 2d |E;.}.../|/-------|
|00003000| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003010| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003020| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003030| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003040| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0d 2f 2f |--------|-----.//|
|00003050| 20 45 6e 64 44 72 61 77 | 3a 0d 2f 2f 2d 2d 2d 2d | EndDraw|:.//----|
|00003060| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003070| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003080| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000030a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000030b0| 0d 76 6f 69 64 20 45 6e | 64 44 72 61 77 28 4e 50 |.void En|dDraw(NP|
|000030c0| 57 69 6e 64 6f 77 2a 20 | 77 69 6e 64 6f 77 29 0d |Window* |window).|
|000030d0| 7b 0d 09 4e 50 5f 50 6f | 72 74 2a 20 70 6f 72 74 |{..NP_Po|rt* port|
|000030e0| 20 3d 20 28 4e 50 5f 50 | 6f 72 74 2a 29 20 77 69 | = (NP_P|ort*) wi|
|000030f0| 6e 64 6f 77 2d 3e 77 69 | 6e 64 6f 77 3b 0d 09 3a |ndow->wi|ndow;..:|
|00003100| 3a 53 65 74 4f 72 69 67 | 69 6e 28 67 53 61 76 65 |:SetOrig|in(gSave|
|00003110| 50 6f 72 74 2e 70 6f 72 | 74 52 65 63 74 2e 6c 65 |Port.por|tRect.le|
|00003120| 66 74 2c 20 67 53 61 76 | 65 50 6f 72 74 2e 70 6f |ft, gSav|ePort.po|
|00003130| 72 74 52 65 63 74 2e 74 | 6f 70 29 3b 0d 09 3a 3a |rtRect.t|op);..::|
|00003140| 53 65 74 43 6c 69 70 28 | 67 53 61 76 65 50 6f 72 |SetClip(|gSavePor|
|00003150| 74 2e 63 6c 69 70 52 67 | 6e 29 3b 0d 09 43 47 72 |t.clipRg|n);..CGr|
|00003160| 61 66 50 74 72 20 6d 79 | 50 6f 72 74 3b 0d 09 3a |afPtr my|Port;..:|
|00003170| 3a 47 65 74 50 6f 72 74 | 28 28 47 72 61 66 50 74 |:GetPort|((GrafPt|
|00003180| 72 2a 29 26 6d 79 50 6f | 72 74 29 3b 0d 09 6d 79 |r*)&myPo|rt);..my|
|00003190| 50 6f 72 74 2d 3e 74 78 | 46 6f 6e 74 20 3d 20 67 |Port->tx|Font = g|
|000031a0| 53 61 76 65 50 6f 72 74 | 2e 74 78 46 6f 6e 74 3b |SavePort|.txFont;|
|000031b0| 0d 09 6d 79 50 6f 72 74 | 2d 3e 74 78 46 61 63 65 |..myPort|->txFace|
|000031c0| 20 3d 20 67 53 61 76 65 | 50 6f 72 74 2e 74 78 46 | = gSave|Port.txF|
|000031d0| 61 63 65 3b 0d 09 6d 79 | 50 6f 72 74 2d 3e 74 78 |ace;..my|Port->tx|
|000031e0| 4d 6f 64 65 20 3d 20 67 | 53 61 76 65 50 6f 72 74 |Mode = g|SavePort|
|000031f0| 2e 74 78 4d 6f 64 65 3b | 0d 09 3a 3a 52 47 42 46 |.txMode;|..::RGBF|
|00003200| 6f 72 65 43 6f 6c 6f 72 | 28 26 67 53 61 76 65 50 |oreColor|(&gSaveP|
|00003210| 6f 72 74 2e 72 67 62 46 | 67 43 6f 6c 6f 72 29 3b |ort.rgbF|gColor);|
|00003220| 0d 09 3a 3a 52 47 42 42 | 61 63 6b 43 6f 6c 6f 72 |..::RGBB|ackColor|
|00003230| 28 26 67 53 61 76 65 50 | 6f 72 74 2e 72 67 62 42 |(&gSaveP|ort.rgbB|
|00003240| 6b 43 6f 6c 6f 72 29 3b | 0d 09 3a 3a 53 65 74 50 |kColor);|..::SetP|
|00003250| 6f 72 74 28 28 47 72 61 | 66 50 74 72 29 67 4f 6c |ort((Gra|fPtr)gOl|
|00003260| 64 50 6f 72 74 29 3b 0d | 7d 0d 0d 0d 2f 2f 2d 2d |dPort);.|}...//--|
|00003270| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003280| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003290| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000032a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000032b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000032c0| 2d 2d 0d 2f 2f 20 44 6f | 44 72 61 77 3a 0d 2f 2f |--.// Do|Draw:.//|
|000032d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000032e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000032f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003300| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003310| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003320| 2d 2d 2d 2d 0d 76 6f 69 | 64 20 44 6f 44 72 61 77 |----.voi|d DoDraw|
|00003330| 28 50 6c 75 67 69 6e 49 | 6e 73 74 61 6e 63 65 2a |(PluginI|nstance*|
|00003340| 20 54 68 69 73 29 0d 7b | 0d 09 69 66 20 28 54 68 | This).{|..if (Th|
|00003350| 69 73 2d 3e 66 50 69 63 | 74 20 3d 3d 20 4e 55 4c |is->fPic|t == NUL|
|00003360| 4c 29 09 2f 2f 20 44 6f | 20 6e 6f 74 20 64 72 61 |L).// Do| not dra|
|00003370| 77 20 69 66 20 77 65 20 | 61 72 65 20 6e 6f 74 20 |w if we |are not |
|00003380| 64 6f 6e 65 0d 09 09 72 | 65 74 75 72 6e 3b 0d 0d |done...r|eturn;..|
|00003390| 09 52 65 63 74 20 64 72 | 61 77 52 65 63 74 3b 0d |.Rect dr|awRect;.|
|000033a0| 09 64 72 61 77 52 65 63 | 74 2e 74 6f 70 20 3d 20 |.drawRec|t.top = |
|000033b0| 30 3b 0d 09 64 72 61 77 | 52 65 63 74 2e 6c 65 66 |0;..draw|Rect.lef|
|000033c0| 74 20 3d 20 30 3b 0d 09 | 64 72 61 77 52 65 63 74 |t = 0;..|drawRect|
|000033d0| 2e 62 6f 74 74 6f 6d 20 | 3d 20 64 72 61 77 52 65 |.bottom |= drawRe|
|000033e0| 63 74 2e 74 6f 70 20 2b | 20 54 68 69 73 2d 3e 66 |ct.top +| This->f|
|000033f0| 57 69 6e 64 6f 77 2d 3e | 68 65 69 67 68 74 3b 0d |Window->|height;.|
|00003400| 09 64 72 61 77 52 65 63 | 74 2e 72 69 67 68 74 20 |.drawRec|t.right |
|00003410| 3d 20 64 72 61 77 52 65 | 63 74 2e 6c 65 66 74 20 |= drawRe|ct.left |
|00003420| 2b 20 54 68 69 73 2d 3e | 66 57 69 6e 64 6f 77 2d |+ This->|fWindow-|
|00003430| 3e 77 69 64 74 68 3b 0d | 09 0d 09 3a 3a 44 72 61 |>width;.|...::Dra|
|00003440| 77 50 69 63 74 75 72 65 | 28 28 50 69 63 48 61 6e |wPicture|((PicHan|
|00003450| 64 6c 65 29 54 68 69 73 | 2d 3e 66 50 69 63 74 2c |dle)This|->fPict,|
|00003460| 20 26 64 72 61 77 52 65 | 63 74 29 3b 0d 7d 0d 0d | &drawRe|ct);.}..|
|00003470| 0d 2f 2f 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.//-----|--------|
|00003480| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003490| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000034a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000034b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000034c0| 2d 2d 2d 2d 2d 2d 2d 0d | 2f 2f 20 6e 61 74 69 76 |-------.|// nativ|
|000034d0| 65 5f 52 65 74 61 72 67 | 65 74 69 6e 67 50 6c 75 |e_Retarg|etingPlu|
|000034e0| 67 69 6e 5f 53 65 74 4c | 6f 63 61 74 69 6f 6e 3a |gin_SetL|ocation:|
|000034f0| 0d 2f 2f 20 69 6d 70 6c | 65 6d 65 6e 74 61 74 69 |.// impl|ementati|
|00003500| 6f 6e 20 6f 66 20 6a 61 | 76 61 20 6e 61 74 69 76 |on of ja|va nativ|
|00003510| 65 20 6d 65 74 68 6f 64 | 73 2e 0d 2f 2f 2d 2d 2d |e method|s..//---|
|00003520| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003530| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003540| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003550| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003560| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003570| 2d 0d 65 78 74 65 72 6e | 20 4a 52 49 5f 50 55 42 |-.extern| JRI_PUB|
|00003580| 4c 49 43 5f 41 50 49 28 | 76 6f 69 64 29 0d 6e 61 |LIC_API(|void).na|
|00003590| 74 69 76 65 5f 52 65 6c | 6f 63 61 74 61 62 6c 65 |tive_Rel|ocatable|
|000035a0| 50 6c 75 67 69 6e 5f 53 | 65 74 4c 6f 63 61 74 69 |Plugin_S|etLocati|
|000035b0| 6f 6e 28 4a 52 49 45 6e | 76 2a 20 65 6e 76 2c 20 |on(JRIEn|v* env, |
|000035c0| 0d 09 09 09 09 09 09 09 | 09 09 73 74 72 75 63 74 |........|..struct|
|000035d0| 20 52 65 6c 6f 63 61 74 | 61 62 6c 65 50 6c 75 67 | Relocat|ablePlug|
|000035e0| 69 6e 2a 20 73 65 6c 66 | 2c 20 0d 09 09 09 09 09 |in* self|, ......|
|000035f0| 09 09 09 09 73 74 72 75 | 63 74 20 6a 61 76 61 5f |....stru|ct java_|
|00003600| 6c 61 6e 67 5f 53 74 72 | 69 6e 67 20 2a 61 29 0d |lang_Str|ing *a).|
|00003610| 7b 0d 09 4e 50 50 20 69 | 6e 73 74 61 6e 63 65 20 |{..NPP i|nstance |
|00003620| 3d 20 28 4e 50 50 29 20 | 28 73 65 6c 66 2d 3e 67 |= (NPP) |(self->g|
|00003630| 65 74 50 65 65 72 28 65 | 6e 76 29 29 3b 0d 09 50 |etPeer(e|nv));..P|
|00003640| 6c 75 67 69 6e 49 6e 73 | 74 61 6e 63 65 2a 20 54 |luginIns|tance* T|
|00003650| 68 69 73 20 3d 20 28 50 | 6c 75 67 69 6e 49 6e 73 |his = (P|luginIns|
|00003660| 74 61 6e 63 65 2a 29 69 | 6e 73 74 61 6e 63 65 2d |tance*)i|nstance-|
|00003670| 3e 70 64 61 74 61 3b 0d | 0d 09 63 6f 6e 73 74 20 |>pdata;.|..const |
|00003680| 63 68 61 72 2a 20 74 68 | 65 55 52 4c 20 3d 20 4a |char* th|eURL = J|
|00003690| 52 49 5f 47 65 74 53 74 | 72 69 6e 67 55 54 46 43 |RI_GetSt|ringUTFC|
|000036a0| 68 61 72 73 28 20 65 6e | 76 2c 20 61 20 29 3b 0d |hars( en|v, a );.|
|000036b0| 09 4e 50 4e 5f 47 65 74 | 55 52 4c 28 20 69 6e 73 |.NPN_Get|URL( ins|
|000036c0| 74 61 6e 63 65 2c 20 74 | 68 65 55 52 4c 2c 20 4e |tance, t|heURL, N|
|000036d0| 55 4c 4c 20 29 3b 0d 7d | 0d 00 00 00 00 00 00 00 |ULL );.}|........|
|000036e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003700| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00003710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003720| 00 00 00 00 51 93 a1 c1 | 00 00 00 00 00 00 00 00 |....Q...|........|
|00003730| 0b 4c 69 76 65 50 69 63 | 74 2e 63 70 02 00 00 00 |.LivePic|t.cp....|
|00003740| 54 45 58 54 43 57 49 45 | 00 00 b1 e0 b2 6a 00 00 |TEXTCWIE|.....j..|
|00003750| 00 00 54 45 58 54 43 57 | 49 45 00 00 b1 e0 b2 6a |..TEXTCW|IE.....j|
|00003760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003770| 00 00 ae 08 2c 03 00 00 | 36 59 00 00 01 9a 00 00 |....,...|6Y......|
|00003780| 10 70 65 74 61 72 40 6c | 63 6c 61 72 6b 2e 65 64 |.petar@l|clark.ed|
|00003790| 75 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |u.......|........|
|000037a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037c0| 07 52 65 3a 20 53 44 4b | 00 00 00 00 00 00 00 00 |.Re: SDK|........|
|000037d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003800| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00003810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003820| 00 00 00 00 00 00 00 03 | 00 04 00 6c 00 09 02 f0 |........|...l....|
|00003830| 02 68 00 6c 00 09 02 f0 | 02 68 ae 3d f9 20 00 00 |.h.l....|.h.=. ..|
|00003840| 00 00 00 00 00 00 00 00 | 2f 6c 01 00 00 00 00 04 |........|/l......|
|00003850| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00003860| 00 00 00 46 03 84 66 bc | 1f f4 00 00 00 1c 00 46 |...F..f.|.......F|
|00003870| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00003880| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00003890| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|000038a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+